package com.yidiandao.business.ui.main.shoppingcart.chooseredpacket;

import com.yidiandao.business.base.BasePresenter;
import com.yidiandao.business.base.BaseView;
import com.yidiandao.business.interfaces.RefreshLayoutStateListener;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.ChooseRedPacketListItem;

import java.util.List;

/**
 * 选择红包-契约类
 *
 * <p>Created by ChenTao(chentao7v@gmail.com) on 2017/2/8 15:43
 */
public interface ChooseRedPacketContract {

    interface Presenter extends BasePresenter {

        void onItemClick(ChooseRedPacketListItem listItem);

        void onConfirmChoose();

        void setUseRedPacket(boolean useRedPacket);
    }

    interface View extends BaseView<Presenter>, RefreshLayoutStateListener {

        void setListViewVisibility(boolean visible);

        void setDisplayListItems(List<DisplayListItem> displayListItems);

        void notifyDataSetChanged();

        void finishActivity();

        void refreshUseRedPacketState(boolean useRedPacket);
    }
}
